package itdep.domain.profile;


import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

/**
 * @author $Author: ikhalopik $
 * @version $Revision: 51 $   $Date: 2010-07-06 10:18:16 +0000 (Tue, 06 Jul 2010) $
 */
public enum ContactType implements OrderedEnum, Translatable {
	UNKNOWN(0, "unknown"),
	PHONE(1, "phone"),
	EMAIL(2, "email"),
	IM(3, "im");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "contact-type";
	private int order;
	private String code;

	ContactType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}

}